package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 房间订单对象 tb_room_order
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class TbRoomOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 下单的用户id */
    @Excel(name = "下单的用户id")
    private Long userId;

    /** 租赁的房屋id */
    @Excel(name = "租赁的房屋id")
    private Long roomId;

    /** 支付方式 1：信用额度支付；2：支付宝；3：微信 */
    @Excel(name = "支付方式 1：信用额度支付；2：支付宝；3：微信")
    private Integer payType;

    /** 订单状态，1：未支付；2：已支付；3：已核销；4：已取消；5：退款中；6：已退款 */
    @Excel(name = "订单状态，1：未支付；2：已支付；3：已核销；4：已取消；5：退款中；6：已退款")
    private Integer status;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundTime;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkinDate;

    /** 退租日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退租日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutDate;

    /** 租住月份 */
    @Excel(name = "租住月份")
    private Long amount;

    /** 总租金 */
    @Excel(name = "总租金")
    private Long total;

    /** 月租金 */
    @Excel(name = "月租金")
    private Long currentPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setRefundTime(Date refundTime) 
    {
        this.refundTime = refundTime;
    }

    public Date getRefundTime() 
    {
        return refundTime;
    }

    public void setCheckinDate(Date checkinDate) 
    {
        this.checkinDate = checkinDate;
    }

    public Date getCheckinDate() 
    {
        return checkinDate;
    }

    public void setCheckoutDate(Date checkoutDate) 
    {
        this.checkoutDate = checkoutDate;
    }

    public Date getCheckoutDate() 
    {
        return checkoutDate;
    }

    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }

    public void setCurrentPrice(Long currentPrice) 
    {
        this.currentPrice = currentPrice;
    }

    public Long getCurrentPrice() 
    {
        return currentPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("roomId", getRoomId())
            .append("payType", getPayType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("refundTime", getRefundTime())
            .append("checkinDate", getCheckinDate())
            .append("checkoutDate", getCheckoutDate())
            .append("amount", getAmount())
            .append("total", getTotal())
            .append("currentPrice", getCurrentPrice())
            .toString();
    }
}
